<?php get_header(); ?>

<!-- PRIMARY CONTENT (start) -->
		
<div id="primary">

    <?php if($themeblvd_sidebar == 'left') : ?>
    	<?php get_sidebar(); ?>
    <?php endif; ?>

    <div id="content">
        <div class="pad">

            <?php the_post(); ?>
            
            <?php themeblvd_breadcrumbs(); ?>

            <div class="single" id="post-<?php the_ID(); ?>">

                <h2 class="page-title"><?php the_title(); ?></h2>

                <span class="author-box">
                    <span class="date"><?php _e('Posted on', 'themeblvd'); ?> <?php the_time( get_option('date_format') ); ?> <?php _e("by", "themeblvd"); ?> <?php the_author(); ?></span>
                    <?php if( comments_open() ): ?>
                    <a href="<?php the_permalink(); ?>#comments" class="comments-link"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></a>
                    <?php endif; ?>
                </span>

                <!-- Post Content -->
                <?php rewind_posts(); ?>
                <?php the_content(); ?>

                <?php edit_post_link( __('Edit Page', 'themeblvd'), '<p>', '</p>' ); ?>

                <?php wp_link_pages() ?>

            </div><!-- .single (end) -->

            <!-- Comments -->
			<?php if( comments_open() ) : ?>
				<?php comments_template('', true); ?>
			<?php endif; ?>	

        </div><!-- .pad (end) -->
    </div><!-- #content (end) -->

    <?php if($themeblvd_sidebar == 'right') : ?>
    	<?php get_sidebar(); ?>
    <?php endif; ?>

<?php get_footer(); ?>